package org.jeecg.common.modules.wx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: wx_userinfo
 * @Author: jeecg-boot
 * @Date:   2020-08-23
 * @Version: V1.0
 */
@Data
@TableName("wx_userinfo")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wx_userinfo对象", description="wx_userinfo")
public class WxUserinfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
    /**微信公众号id*/
    @Excel(name = "微信公众号id", width = 15)
    @ApiModelProperty(value = "微信公众号id")
    private String wxAccountId;
	/**openid*/
	@Excel(name = "openid", width = 15)
    @ApiModelProperty(value = "openid")
    private String openid;
    /**小城序openid*/
    @Excel(name = "smOpenid", width = 15)
    @ApiModelProperty(value = "smOpenid")
    private String smOpenid;
	/**用户unionid*/
	@Excel(name = "用户unionid", width = 15)
    @ApiModelProperty(value = "用户unionid")
    private String unionid;
	/**用户昵称*/
	@Excel(name = "用户昵称", width = 15)
    @ApiModelProperty(value = "用户昵称")
    private String nickname;
	/**性别 1男2女*/
	@Excel(name = "性别 1男2女", width = 15)
    @ApiModelProperty(value = "性别 1男2女")
    private Integer sex;

	/** 手机号 */
    @Excel(name = "手机号", width = 15)
    @ApiModelProperty(value = "手机号")
    private String mobile;

	/**所在城市*/
	@Excel(name = "所在城市", width = 15)
    @ApiModelProperty(value = "所在城市")
    private String city;
	/**所在国家*/
	@Excel(name = "所在国家", width = 15)
    @ApiModelProperty(value = "所在国家")
    private String country;
	/**所在省份*/
	@Excel(name = "所在省份", width = 15)
    @ApiModelProperty(value = "所在省份")
    private String province;
	/**语言*/
	@Excel(name = "语言", width = 15)
    @ApiModelProperty(value = "语言")
    private String language;
	/**头像*/
	@Excel(name = "头像", width = 15)
    @ApiModelProperty(value = "头像")
    private String headimgurl;
    /**小程序头像*/
    @Excel(name = "头像", width = 15)
    @ApiModelProperty(value = "小程序头像")
    private String avatarurl;
	/**最后关注时间*/
	@Excel(name = "最后关注时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后关注时间")
    private Date subscribeTime;
	/**返回用户关注的渠道来源，ADD_SCENE_SEARCH 公众号搜索，ADD_SCENE_ACCOUNT_MIGRATION 公众号迁移，ADD_SCENE_PROFILE_CARD 名片分享，ADD_SCENE_QR_CODE 扫描二维码，ADD_SCENE_PROFILE_LINK 图文页内名称点击，ADD_SCENE_PROFILE_ITEM 图文页右上角菜单，ADD_SCENE_PAID 支付后关注，ADD_SCENE_WECHAT_ADVERTISEMENT 微信广告，ADD_SCENE_OTHERS 其他
*/
	@Excel(name = "返回用户关注的渠道来源，ADD_SCENE_SEARCH 公众号搜索，ADD_SCENE_ACCOUNT_MIGRATION 公众号迁移，ADD_SCENE_PROFILE_CARD 名片分享，ADD_SCENE_QR_CODE 扫描二维码，ADD_SCENE_PROFILE_LINK 图文页内名称点击，ADD_SCENE_PROFILE_ITEM 图文页右上角菜单，ADD_SCENE_PAID 支付后关注，ADD_SCENE_WECHAT_ADVERTISEMENT 微信广告，ADD_SCENE_OTHERS 其他 ", width = 15)
    @ApiModelProperty(value = "返回用户关注的渠道来源，ADD_SCENE_SEARCH 公众号搜索，ADD_SCENE_ACCOUNT_MIGRATION 公众号迁移，ADD_SCENE_PROFILE_CARD 名片分享，ADD_SCENE_QR_CODE 扫描二维码，ADD_SCENE_PROFILE_LINK 图文页内名称点击，ADD_SCENE_PROFILE_ITEM 图文页右上角菜单，ADD_SCENE_PAID 支付后关注，ADD_SCENE_WECHAT_ADVERTISEMENT 微信广告，ADD_SCENE_OTHERS 其他 ")
    private java.lang.String subscribeScene;
	/**二维码扫码场景（*/
	@Excel(name = "二维码扫码场景（", width = 15)
    @ApiModelProperty(value = "二维码扫码场景（")
    private java.lang.String qrScene;
	/**二维码扫码场景描述（开发者自定义）
    */
	@Excel(name = "二维码扫码场景描述（开发者自定义） ", width = 15)
    @ApiModelProperty(value = "二维码扫码场景描述（开发者自定义） ")
    private java.lang.String qrSceneStr;
    /**
     * 小程序进入渠道
     */
    @Excel(name = "小程序进入渠道", width = 15)
    @ApiModelProperty(value = "小程序进入渠道")
    private String smScene;
	/**是否关注公众号*/
	@Excel(name = "是否关注公众号", width = 15)
    @ApiModelProperty(value = "是否关注公众号")
    private java.lang.Integer subscribe;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private java.util.Date updateTime;

    /**最后一次互动时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后一次互动时间")
	private Date lastVisitTime;

    private String pyinShort;

    private String firstChar;

    private String loginGroupId;

    /**
     * 上次IM保持连接时间
     */
    private Date lastConnTime;
    private Integer agreement;  //小程序协议是否同意
}
